<?php

//$foo="____TODO_______ Account handling(session) ";

function rnd_uuid($length) {
    while (@$c++ * 16 < $length)
        @$tmp .= hash('sha512', mt_rand(), true);
    return base64_encode(substr($tmp, 0, $length));
}

?>